package com.edu.control;

import com.edu.javaBean.Department;
import com.edu.javaBean.User;
import com.edu.service.DeptService;
import com.edu.service.SchdulingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
@RestController
public class SchedController {
    @Autowired
    private SchdulingService scheduService;


    @RequestMapping(value = "/getSchdulingDepts",method = RequestMethod.GET)
    public List<Department> getScheduDepts(String scheddate,String noon){

       return scheduService.getScheduDepts(scheddate,noon);
   }
    @RequestMapping(value = "/getSchedDocs",method = RequestMethod.GET)
    public List<User> getSchedDocs(String scheddate, String noon, int deptid){

        return scheduService.getSchedDocs(scheddate,noon,deptid);
    }
}
